Optimal. Leaf size=55 \[ -\frac {1}{2 x^2}+\frac {9+11 x^2}{4 \left (2+3 x^2+x^4\right )}-\frac {11 \log (x)}{4}+5 \log \left (1+x^2\right )-\frac {29}{8} \log \left (2+x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {1677, 1660,
1642} \begin {gather*} -\frac {1}{2 x^2}+5 \log \left (x^2+1\right )-\frac {29}{8} \log \left (x^2+2\right )+\frac {11 x^2+9}{4 \left (x^4+3 x^2+2\right )}-\frac {11 \log (x)}{4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1642
Rule 1660
Rule 1677
Rubi steps
\begin {align*} \int \frac {4+x^2+3 x^4+5 x^6}{x^3 \left (2+3 x^2+x^4\right )^2} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {4+x+3 x^2+5 x^3}{x^2 \left (2+3 x+x^2\right )^2} \, dx,x,x^2\right )\\ &=\frac {9+11 x^2}{4 \left (2+3 x^2+x^4\right )}-\frac {1}{2} \text {Subst}\left (\int \frac {-2+\frac {5 x}{2}-\frac {11 x^2}{2}}{x^2 \left (2+3 x+x^2\right )} \, dx,x,x^2\right )\\ &=\frac {9+11 x^2}{4 \left (2+3 x^2+x^4\right )}-\frac {1}{2} \text {Subst}\left (\int \left (-\frac {1}{x^2}+\frac {11}{4 x}-\frac {10}{1+x}+\frac {29}{4 (2+x)}\right ) \, dx,x,x^2\right )\\ &=-\frac {1}{2 x^2}+\frac {9+11 x^2}{4 \left (2+3 x^2+x^4\right )}-\frac {11 \log (x)}{4}+5 \log \left (1+x^2\right )-\frac {29}{8} \log \left (2+x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 50, normalized size = 0.91 \begin {gather*} \frac {1}{8} \left (-\frac {4}{x^2}+\frac {18+22 x^2}{2+3 x^2+x^4}-22 \log (x)+40 \log \left (1+x^2\right )-29 \log \left (2+x^2\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 45, normalized size = 0.82
method | result | size |
default | \(-\frac {1}{2 \left (x^{2}+1\right )}+5 \ln \left (x^{2}+1\right )-\frac {1}{2 x^{2}}-\frac {11 \ln \left (x \right )}{4}-\frac {29 \ln \left (x^{2}+2\right )}{8}+\frac {13}{4 \left (x^{2}+2\right )}\) | \(45\) |
norman | \(\frac {-1+\frac {3}{4} x^{2}+\frac {9}{4} x^{4}}{x^{2} \left (x^{4}+3 x^{2}+2\right )}-\frac {11 \ln \left (x \right )}{4}+5 \ln \left (x^{2}+1\right )-\frac {29 \ln \left (x^{2}+2\right )}{8}\) | \(50\) |
risch | \(\frac {-1+\frac {3}{4} x^{2}+\frac {9}{4} x^{4}}{x^{2} \left (x^{4}+3 x^{2}+2\right )}-\frac {11 \ln \left (x \right )}{4}+5 \ln \left (x^{2}+1\right )-\frac {29 \ln \left (x^{2}+2\right )}{8}\) | \(50\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 53, normalized size = 0.96 \begin {gather*} \frac {9 \, x^{4} + 3 \, x^{2} - 4}{4 \, {\left (x^{6} + 3 \, x^{4} + 2 \, x^{2}\right )}} - \frac {29}{8} \, \log \left (x^{2} + 2\right ) + 5 \, \log \left (x^{2} + 1\right ) - \frac {11}{8} \, \log \left (x^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 92, normalized size = 1.67 \begin {gather*} \frac {18 \, x^{4} + 6 \, x^{2} - 29 \, {\left (x^{6} + 3 \, x^{4} + 2 \, x^{2}\right )} \log \left (x^{2} + 2\right ) + 40 \, {\left (x^{6} + 3 \, x^{4} + 2 \, x^{2}\right )} \log \left (x^{2} + 1\right ) - 22 \, {\left (x^{6} + 3 \, x^{4} + 2 \, x^{2}\right )} \log \left (x\right ) - 8}{8 \, {\left (x^{6} + 3 \, x^{4} + 2 \, x^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.08, size = 51, normalized size = 0.93 \begin {gather*} \frac {9 x^{4} + 3 x^{2} - 4}{4 x^{6} + 12 x^{4} + 8 x^{2}} - \frac {11 \log {\left (x \right )}}{4} + 5 \log {\left (x^{2} + 1 \right )} - \frac {29 \log {\left (x^{2} + 2 \right )}}{8} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.43, size = 53, normalized size = 0.96 \begin {gather*} \frac {9 \, x^{4} + 3 \, x^{2} - 4}{4 \, {\left (x^{6} + 3 \, x^{4} + 2 \, x^{2}\right )}} - \frac {29}{8} \, \log \left (x^{2} + 2\right ) + 5 \, \log \left (x^{2} + 1\right ) - \frac {11}{8} \, \log \left (x^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 50, normalized size = 0.91 \begin {gather*} 5\,\ln \left (x^2+1\right )-\frac {29\,\ln \left (x^2+2\right )}{8}-\frac {11\,\ln \left (x\right )}{4}+\frac {\frac {9\,x^4}{4}+\frac {3\,x^2}{4}-1}{x^6+3\,x^4+2\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________